import java.util.List;

/**
 * @author SaoE
 * @date 2025/3/22 15:50
 */
public class _206 {
    public ListNode reverseList(ListNode head) {
        ListNode pre = null;
        while(head != null){
            ListNode next = head.next;
            head.next = pre;
            pre = head;
            head = next;
        }
        return null;
    }
}
